// 主题切换
export const themeData = {
  linght: {
    bgColor: "#fff",
    bgColor2: "#f6f6f6",
    fColor: "#333",
    fColor2: "#666",
    fColor3: "#89898A",
    tableColor: "#3f77db1a",
    color01: "#1f79ad",
    color02: "#0084ff",
    color03: "#ccc",
    color04: "#eee",
    color05: "#f2f5f6",
    color06: "#1989fa",
    color07: "#78bdfb",
    color08: "#ff9900",
    color09: "#b9ddff",
    color10: "#fafafa",
    color11: "#32c5e9",
    color12: "#37a2da",
    color13: "#67e0e3",
    color14: "#3ea0fa",
    color15: "#f26961",
    color16: "#26babf",
    color17: "#5470c6",
    color18: "#91cc75",
    color19: "#fac858",
    color20: "#73c0de",
    color21: "#3ba272",
    color22: "#fc8452",
    color23: "#ea7ccc",
    color24: "#f5fbff",
    color25: "#2369a7",
    color26: "#3de7c9",
    color27: "#00baff",
    color28: "#ffdb5c",
    color29: "#ff7f0e",
    color30: "#a0d8a0",
    color31: "#51af51",
    color32: "#ff0000",
    color33: "#006acc",
    color34: "#efe9e9",
    color35: "#409eff",
    color36: "#bda29a",
    color37: "#619fa7",
    color38: "#d38164",
    color39: "#90c5ac",
    color40: "#739e82",
    color41: "#c58221",
    color42: "#c23531",
    color43: "#2f4554",
    color44: "#66b9f8",
    color45: "#4ecb73",
    color46: "#36cbcb",
    color47: "#fbd337"
  },
  dark: {
    bgColor: "gray",
    bgColor2: "#444",
    fColor: "#fff",
    fColor2: "#fff",
    fColor3: "#fff",
    tableColor: "#f0f7fc",
    color01: "#1f79ad",
    color02: "#000",
    color03: "#ccc",
    color04: "#eee",
    color05: "#f2f5f6",
    color06: "#1989fa",
    color07: "#78bdfb",
    color08: "#ff9900",
    color09: "#b9ddff",
    color10: "#fafafa",
    color11: "#32c5e9",
    color12: "#37a2da",
    color13: "#67e0e3",
    color14: "#3ea0fa",
    color15: "#f26961",
    color16: "#26babf",
    color17: "#5470c6",
    color18: "#91cc75",
    color19: "#fac858",
    color20: "#73c0de",
    color21: "#3ba272",
    color22: "#fc8452",
    color23: "#ea7ccc",
    color24: "#f5fbff",
    color25: "#2369a7",
    color26: "#3de7c9",
    color27: "#00baff",
    color28: "#ffdb5c",
    color29: "#ff7f0e",
    color30: "#a0d8a0",
    color31: "#51af51",
    color32: "#ff0000",
    color33: "#006acc",
    color34: "#efe9e9",
    color35: "#409eff",
    color36: "#bda29a",
    color37: "#619fa7",
    color38: "#d38164",
    color39: "#90c5ac",
    color40: "#739e82",
    color41: "#c58221",
    color42: "#c23531",
    color43: "#2f4554",
    color44: "#66b9f8",
    color45: "#4ecb73",
    color46: "#36cbcb",
    color47: "#fbd337"
  }
};

export const handTheme = theme => {
  let themeSet = themeData[theme];
  for (let key in themeSet) {
    document
      .getElementsByTagName("body")[0]
      .style.setProperty(`--${key}`, themeSet[key]);
  }
};
